import request from "../utils/request"

/**
 * 查询轮播图
 */
export function getRotation(){
    const url = "/rotationMap/selectRotationMap";
    return request(url);
}

/**
 * 获取菜单
 */
export function getMenu(){
    const url = "/homeMenu/getMenus";
    return request(url);
}
/**
 * 获取社区公告
 */
export function getCommunityAnnouncement(communtyId,ecId){
    const url = "/communityAnnouncement/getCommunityAnnouncement";
    const datas = {
        data:{
            commId:communtyId,
            ecId:ecId
        }
    }
    return request(url,datas,"POST");
}

/**
 * 获取公开问答
 */
export function getquestionsAnswers(communtyId){
    const url = "/questionsAnswers/getQuestionsAnswersAll";
    const datas = {
        data:{
            communityId:communtyId
        }
    }
    return request(url,datas,"POST");
}


/**
 * 获取社区活动信息
 */
export function getActivity(communtyId){
    const url = "/activity/getActivityInfo";
    const datas = {
        data:{
            communityId:communtyId
        }
    }
    return request(url,datas,"POST");
}

/**
 * 获取资讯信息
 */
export function getInformation(communtyId){
    const url = "/information/getInformationInfo";
    const datas = {
        data:{
            communityId:communtyId
        }
    }
    return request(url,datas,"POST");
}


/**
 * 获取工作计划和完成情况
 */
export function getPropertyWorkPlan(communtyId){
    const url = "/propertyWorkPlan/selectPropertyWorkPlan";
    const datas = {
        data:{
            communityId:communtyId
        }
    }
    return request(url,datas,"POST");
}